class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
                    constraints {
                            // apply constraints here
                    }
                }
//                "/$controller/$id?"{
//                        action = [GET:"show", POST:"save", PUT:"update", DELETE:"remove"]
//			constraints {
//				// apply constraints here
//			}
//		}

                // display GSP page
                "/accountStatusActivation"(controller:"adminAccount",action:"accountStatusActivation") // delete/block user
                "/accountStatusActivationDetail"(controller:"adminAccount",action:"accountStatusActivationDetail") // delete/block user
                "/accountClosure"(controller:"adminAccount",action:"closeAccount") // own account?
                "/wineTypeCreate"(controller:"adminProduct",action:"wineTypeCreate")
                "/wineTypeRetrieve"(controller:"adminProduct",action:"wineTypeRetrieve")
                "/wineTypeUpdate"(controller:"adminProduct",action:"wineTypeUpdate")
                "/wineTypeDelete"(controller:"adminProduct",action:"wineTypeDelete")
                "/wineVarietalCreate"(controller:"adminProduct",action:"wineVarietalCreate")
                "/wineVarietalRetrieve"(controller:"adminProduct",action:"wineVarietalRetrieve")
                "/wineVarietalUpdate"(controller:"adminProduct",action:"wineVarietalUpdate")
                "/wineVarietalDelete"(controller:"adminProduct",action:"wineVarietalDelete")
                "/wineRegionCreate"(controller:"adminProduct",action:"wineRegionCreate")
                "/wineRegionRetrieve"(controller:"adminProduct",action:"wineRegionRetrieve")
                "/wineRegionUpdate"(controller:"adminProduct",action:"wineRegionUpdate")
                "/wineRegionDelete"(controller:"adminProduct",action:"wineRegionDelete")
                "/wineCreate"(controller:"adminProduct",action:"wineCreate")
                "/wineRetrieve"(controller:"adminProduct",action:"wineRetrieve")
                "/wineUpdate"(controller:"adminProduct",action:"wineUpdate")
                "/wineDelete"(controller:"adminProduct",action:"wineDelete")
                "/memberInfoManagement"(controller:"customer",action:"memberInfoManagement")
                "/memberInfoEditing"(controller:"customer",action:"memberInfoEditing")
                "/memberRegistration"(controller:"customer",action:"memberRegistration")
                "/memberLogin"(view:"memberLogin")
                "/thankyou"(view:"customer/thankyou")
                
                
        
                
		"/"(view:"/index")
		"500"(view:'/error')
	}
}
